<template>
  <div class="asset-list-wrap">
    <!-- 多单位 -->
    <multiple-units-asset-list v-if="$store.state.userinfo.isMuilUnitUser === 1" :organizationIds="$store.state.userinfo.organizationIds" :queryObj="parames"></multiple-units-asset-list>
    <!-- 单单位 -->
    <single-unit-build-asset-list v-else :organizationId="$store.state.userinfo.org.id" :queryObj="parames"></single-unit-build-asset-list>
  </div>
</template>

<script>
import multipleUnitsAssetList from './PageModel/MultipleUnitsAssetList'
import SingleUnitBuildAssetList from './PageModel/SingleUnitBuildAssetList'

export default {
  name:'AssetList',
  props: {
    
  },
  components: {
    multipleUnitsAssetList,
    SingleUnitBuildAssetList
  },
  data() {
    return {
      parames:{}
    }
  },
  created() {
    this.parames=this.$route.params
  },
  methods: {}
}
</script>
<style lang="scss">

</style>
